//
//  TestHeader.m
//  Category
//
//  Created by Burn on 2020/1/15.
//  Copyright © 2020 menksoft. All rights reserved.
//

#import "TestHeader.h"
@interface TestHeader ()

@property(strong,nonatomic) UILabel *contentView;


@end

@implementation TestHeader


- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.contentView = [[UILabel alloc]init];
        self.contentView.textColor = [UIColor whiteColor];
        self.contentView.textAlignment = NSTextAlignmentCenter;
        self.contentView.frame = self.bounds;
        [self addSubview:self.contentView];
    }
    return self;
}


- (void)viewPullingWithOffset:(CGFloat)offset{
    self.contentView.text = [NSString stringWithFormat:@"<<%f>>",offset];
}

- (void)viewWhenFreeReload{
    self.contentView.text = @"whenFreeRequestInterface";
}
    
- (void)viewReloading{
    self.contentView.text = @"Requesting";
}

@end
